package com.fis.hlo.pm.persistence;

import java.math.BigDecimal;
import java.util.Date;
import java.util.List;





























public class Invoiced {
	private long invoiceId;
	private Date month;
	private String invoiceNo;
	private Cycles cycles;
	private Objects object;
	private String type;
	private InvoiceType invoiceType;
	private BigDecimal org;
	private BigDecimal remain;
	private BigDecimal trans;
	private BigDecimal discount;
	private BigDecimal promotion;
	private String status;
	private Accounts account;
	private BigDecimal taxAmount;
	private String username;
	private Currencies currency;
	private String langguage;
	private CycleType cycleType;
	private Date fromDate;
	private Date toDate;
	private String errorMessage;
	private List<Invoiced> invoicesList;

	public Invoiced() {

	}

	public Invoiced(long invoiceId, Date month, String invoiceNo,
			Cycles cycles, Objects object, String type,
			InvoiceType invoiceType, BigDecimal org, BigDecimal remain,
			BigDecimal trans, BigDecimal discount, BigDecimal promotion,
			String status, Accounts account, BigDecimal taxAmount,
			String username, Currencies currency, String langguage,
			CycleType cycleType, Date fromDate, Date toDate,
			String errorMessage, List<Invoiced> invoicesList) {
		super();
		this.invoiceId = invoiceId;
		this.month = month;
		this.invoiceNo = invoiceNo;
		this.cycles = cycles;
		this.object = object;
		this.type = type;
		this.invoiceType = invoiceType;
		this.org = org;
		this.remain = remain;
		this.trans = trans;
		this.discount = discount;
		this.promotion = promotion;
		this.status = status;
		this.account = account;
		this.taxAmount = taxAmount;
		this.username = username;
		this.currency = currency;
		this.langguage = langguage;
		this.cycleType = cycleType;
		this.fromDate = fromDate;
		this.toDate = toDate;
		this.errorMessage = errorMessage;
		this.invoicesList = invoicesList;
	}

	public long getInvoiceId() {
		return invoiceId;
	}

	public void setInvoiceId(long invoiceId) {
		this.invoiceId = invoiceId;
	}

	public Date getMonth() {
		return month;
	}

	public void setMonth(Date month) {
		this.month = month;
	}

	public String getInvoiceNo() {
		return invoiceNo;
	}

	public void setInvoiceNo(String invoiceNo) {
		this.invoiceNo = invoiceNo;
	}

	public Cycles getCycles() {
		return cycles;
	}

	public void setCycles(Cycles cycles) {
		this.cycles = cycles;
	}

	public Objects getObject() {
		return object;
	}

	public void setObject(Objects object) {
		this.object = object;
	}

	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}

	public InvoiceType getInvoiceType() {
		return invoiceType;
	}

	public void setInvoiceType(InvoiceType invoiceType) {
		this.invoiceType = invoiceType;
	}

	public BigDecimal getOrg() {
		return org;
	}

	public void setOrg(BigDecimal org) {
		this.org = org;
	}

	public BigDecimal getRemain() {
		return remain;
	}

	public void setRemain(BigDecimal remain) {
		this.remain = remain;
	}

	public BigDecimal getTrans() {
		return trans;
	}

	public void setTrans(BigDecimal trans) {
		this.trans = trans;
	}

	public BigDecimal getDiscount() {
		return discount;
	}

	public void setDiscount(BigDecimal discount) {
		this.discount = discount;
	}

	public BigDecimal getPromotion() {
		return promotion;
	}

	public void setPromotion(BigDecimal promotion) {
		this.promotion = promotion;
	}

	public String getStatus() {
		return status;
	}

	public void setStatus(String status) {
		this.status = status;
	}

	public Accounts getAccount() {
		return account;
	}

	public void setAccount(Accounts account) {
		this.account = account;
	}

	public BigDecimal getTaxAmount() {
		return taxAmount;
	}

	public void setTaxAmount(BigDecimal taxAmount) {
		this.taxAmount = taxAmount;
	}

	public String getUsername() {
		return username;
	}

	public void setUsername(String username) {
		this.username = username;
	}

	public Currencies getCurrency() {
		return currency;
	}

	public void setCurrency(Currencies currency) {
		this.currency = currency;
	}

	public String getLangguage() {
		return langguage;
	}

	public void setLangguage(String langguage) {
		this.langguage = langguage;
	}

	public CycleType getCycleType() {
		return cycleType;
	}

	public void setCycleType(CycleType cycleType) {
		this.cycleType = cycleType;
	}

	public Date getFromDate() {
		return fromDate;
	}

	public void setFromDate(Date fromDate) {
		this.fromDate = fromDate;
	}

	public Date getToDate() {
		return toDate;
	}

	public void setToDate(Date toDate) {
		this.toDate = toDate;
	}

	public String getErrorMessage() {
		return errorMessage;
	}

	public void setErrorMessage(String errorMessage) {
		this.errorMessage = errorMessage;
	}

	public List<Invoiced> getInvoicesList() {
		return invoicesList;
	}

	public void setInvoicesList(List<Invoiced> invoicesList) {
		this.invoicesList = invoicesList;
	}

	@Override
	public boolean equals(Object obj) {
		if (obj instanceof Invoiced) {
			Invoiced i = (Invoiced) obj;
			return i.getInvoiceNo() == this.invoiceNo;
		}

		return false;
	}

}
